package com.frogs.ucenter.v1.request;

import javax.servlet.http.HttpServletRequest;

import com.frogs.framework.util.StringUtil;
import com.frogs.framework.web.HttpRequestInfo;
import com.frogs.system.util.ApiUrlParamEnum;
import com.frogs.system.web.api.request.Request;
import com.frogs.system.web.exception.RequestIllegalException;

/**
 * 获取保险列表请求参数
 * 
 * @author wushubin
 *
 */
public class InsuranceInfoListRequest extends Request {

	private String ids;
	
	@Override
	public void parse(HttpServletRequest request) {
		HttpRequestInfo requestInfo = new HttpRequestInfo(request);
		this.ids = requestInfo.getParameter(ApiUrlParamEnum.ids.getParamName());
		if ( StringUtil.isEmpty(ids) ) {
			throw new RequestIllegalException("ID不能为空 ");
		}
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}
	
	
}
